package cn.francis;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Name: AgroWebApplication
 * Package: cn.francis
 * Date: 2024/10/23 - 17:14
 * Description:
 *
 * @author Junhui Zhang
 * @version v1.0
 */

@SpringBootApplication
@MapperScan("com.qfedu.agro.mapper")
@EnableTransactionManagement
@Slf4j
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class AgroWebApplication {
    /**
     * 启动类
     * @param args
     */
    public static void main(String[] args) {
        //1.启动
        SpringApplication.run(AgroWebApplication.class,args);
        //2.输出
        log.info("项目启动成功");
    }
}
